#include "chatclient.h"

#include <QApplication>

#include "debug.h"
#include "loginwidget.h"
#include "model/datacenter.h"

int main(int argc, char *argv[])
{
    QApplication a(argc, argv);

#if TEST_SKIP_LOGIN
    ChatClient* w = ChatClient::getInstance();
    w->show();
#else
    LoginWidget* loginWidget = new LoginWidget(nullptr);
    loginWidget->show();
#endif

#if TEST_NETWORK
    // network::NetClient netClient(nullptr);
    // netClient.ping();

    model::DataCenter* dataCetner = model::DataCenter::getInstance();
    dataCetner->ping();
#endif

    return a.exec();
}
